<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>left</title>
    <base target="body"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">

	<style type="text/css">
		*{
			font-size:14px;
			text-align: center;
		}
		div {
			background: #87CEFA; 
			margin: 5px; 
			padding: 3px;
			box-shadow: 2px 2px 6px black;
		}
		a {
			text-decoration: none;
		}
		a:hover{
			color:pink;
			font-size:18px;
		}
	</style>
  </head>
  
<body>
	<div>
		<a href='<c:url value="/bookServlet?method=findByAllBook"/>'>全部分类</a>
	</div>
	<c:forEach items="${ categoryLists }" var="category">
		<div>
			<a href="<c:url value='/bookServlet?method=findByTypeBook&cid=${ category.cid}'/>">${ category.cname}</a>
		</div>
	</c:forEach>

 </body>
</html>
